<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">


<h:body>
	<f:metadata>
		<f:event listener="#{eventBean.initForList}" type="preRenderView"></f:event>
	</f:metadata>
	<f:view>
		<ui:composition template="WEB-INF/templates/template.xhtml">
			<ui:define name="content">

				<div class="row" style="border-bottom: solid 1px black;">
					<div class="twelve columns">
						<p class="four columns">
							<b>Username:</b>
						</p>
						<p class="eight columns">
							<h:outputText value="#{loginBean.customer.getUserName()}" />
						</p>
					</div>
				</div>

				<div class="row eventslist">

					<p class="four columns" style="margin-top: 20px;">
						<b>Meine Events:</b>
					</p>
					<ui:repeat value="#{eventBean.customersEventList}"
						var="customerEvents">
						<div id="eventlist" style="margin-left: 345px; margin-top: 20px;">
							<ul>
								<li><b><h:outputText value="#{customerEvents.name}" /></b></li>
								<a href="editevent.xhtml?id=#{customerEvents.id}">Event
									bearbeiten</a>
							</ul>
						</div>
					</ui:repeat>

				</div>
			</ui:define>

		</ui:composition>
	</f:view>

</h:body>
</html>
